package com.wman.sheep.common.base;

import java.io.Serializable;

public class BaseEvent implements Serializable {
    private int eventType;//可能类型有很多种，数据也不一样
    private Object data;//数据对象

    public BaseEvent() {
    }

    public BaseEvent(int type) {
        this.eventType = type;
    }

    public BaseEvent(int type, Object data) {
        this.eventType = type;
        this.data = data;
    }

    public int getEventType() {
        return eventType;
    }

    public void setEventType(int eventType) {
        this.eventType = eventType;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
